package top.truehaku.generator.code.domain.model.code;

import lombok.Getter;
import lombok.Setter;
import top.truehaku.generator.common.util.StringUtils;

public class CodeId {

    @Getter@Setter
    private String identity;

    public CodeId(String identity) {
        if (StringUtils.isBlank(identity)){
            throw new IllegalArgumentException("代码唯一标识不能为空");
        }
        this.identity = identity;
    }

}
